<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.10.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: I18nLanguage: Class TI18nLanguage</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TI18nLanguage"></a><h1 class="cio">Class TI18nLanguage</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#@Description">Description</a></td><td><a class="section"  href="#@Hierarchy">Hierarchy</a></td><td><a class="section"  href="#@Fields">Fields</a></td><td><a class="section"  href="#@Methods">Methods</a></td><td>Properties</td></tr></table>
<a name="@Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="I18nLanguage.html">I18nLanguage</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TI18nLanguage = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
This class translates string constants and textual component properties into a specific language. It loads (or saves) translated strings from (into) a text file.</p>
<a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TI18nLanguage</li></ul><h2 class="overview">Overview</h2>
<a name="@Fields"></a><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="I18nLanguage.TI18nLanguage.html#FLangFile">FLangFile</a></b>: <a   href="BracedIniFile.html#TBracedIniFile">TBracedIniFile</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="I18nLanguage.TI18nLanguage.html#Locale">Locale</a></b>: string;</code></td>
</tr>
</table>
<a name="@Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a   href="I18nLanguage.TI18nLanguage.html#ExtractControlStrings">ExtractControlStrings</a></b>(Component: TComponent): TStrings;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#DoTranslateComp">DoTranslateComp</a></b>(Component: TComponent);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#WriteValue">WriteValue</a></b>(Path: string; Value: string);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a   href="I18nLanguage.TI18nLanguage.html#IsComponentClass">IsComponentClass</a></b>(Component: TComponent; Classes: array of TComponentClass) : Boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="I18nLanguage.TI18nLanguage.html#Create">Create</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a   href="I18nLanguage.TI18nLanguage.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#LoadFromLanguageFile">LoadFromLanguageFile</a></b>(FileName: string);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#SaveToLanguageFile">SaveToLanguageFile</a></b>(FileName: string);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="I18nLanguage.TI18nLanguage.html#PathOf">PathOf</a></b>(Component: TComponent): string;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#TranslateComponent">TranslateComponent</a></b>(Component: TComponent);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#ExportComponent">ExportComponent</a></b>(Component: TComponent);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="I18nLanguage.TI18nLanguage.html#ReadControlStrings">ReadControlStrings</a></b>(Path: string): TStrings;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="I18nLanguage.TI18nLanguage.html#ReadString">ReadString</a></b>(Path: string): string; overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="I18nLanguage.TI18nLanguage.html#ReadString">ReadString</a></b>(Path: string; const Default: string): string; overload;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#WriteControlStrings">WriteControlStrings</a></b>(Path: string; Strings: TStrings); overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="I18nLanguage.TI18nLanguage.html#WriteString">WriteString</a></b>(Path: string; Value: string); overload;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FLangFile"></a><code><b>FLangFile</b>: <a   href="BracedIniFile.html#TBracedIniFile">TBracedIniFile</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Locale"></a><code><b>Locale</b>: string;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="ExtractControlStrings"></a><code>function <b>ExtractControlStrings</b>(Component: TComponent): TStrings;</code></td>
</tr>
<tr><td colspan="2">
<p>
Extracts localizable properties of Control and returns it as a string list.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="DoTranslateComp"></a><code>procedure <b>DoTranslateComp</b>(Component: TComponent);</code></td>
</tr>
<tr><td colspan="2">
<p>
Translate text properties of a control to current language</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="WriteValue"></a><code>procedure <b>WriteValue</b>(Path: string; Value: string);</code></td>
</tr>
<tr><td colspan="2">
<p>
Writes a value at the specfied path into the language file</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="IsComponentClass"></a><code>function <b>IsComponentClass</b>(Component: TComponent; Classes: array of TComponentClass) : Boolean;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="LoadFromLanguageFile"></a><code>procedure <b>LoadFromLanguageFile</b>(FileName: string);</code></td>
</tr>
<tr><td colspan="2">
<p>
Load language from a file</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SaveToLanguageFile"></a><code>procedure <b>SaveToLanguageFile</b>(FileName: string);</code></td>
</tr>
<tr><td colspan="2">
<p>
Save language to a file</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PathOf"></a><code>function <b>PathOf</b>(Component: TComponent): string;</code></td>
</tr>
<tr><td colspan="2">
<p>
Return name path of Component</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="TranslateComponent"></a><code>procedure <b>TranslateComponent</b>(Component: TComponent);</code></td>
</tr>
<tr><td colspan="2">
<p>
Assigns localized values to text properties of a component</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ExportComponent"></a><code>procedure <b>ExportComponent</b>(Component: TComponent);</code></td>
</tr>
<tr><td colspan="2">
<p>
Exports current text properties of a component</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ReadControlStrings"></a><code>function <b>ReadControlStrings</b>(Path: string): TStrings;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns localized strings of a control</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ReadString"></a><code>function <b>ReadString</b>(Path: string): string; overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Returns a single string identified by Path</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ReadString"></a><code>function <b>ReadString</b>(Path: string; const Default: string): string; overload;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="WriteControlStrings"></a><code>procedure <b>WriteControlStrings</b>(Path: string; Strings: TStrings); overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Change localized strings of a control</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="WriteString"></a><code>procedure <b>WriteString</b>(Path: string; Value: string); overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Change a single string identified by Path</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.10.0</a> on 2007-09-13 21:24:25</em>
</span>
</body></html>
